package com.example.etwzgzxt.tool;

import android.app.Application;

import com.baidu.location.BDLocation;
import com.example.etwzgzxt.bean.Info;

;

/**
 * Created by 创宇 on 2016/1/10.
 */
public class InfoApplication extends Application{


    public static final String SHAREPREFERENCES_FILE_NAME = "userInfo";

    private String access_token = null;
    private Info info=null;
    private BDLocation myPoi=null;

    public BDLocation getMyPoi() {
        return myPoi;
    }

    public void setMyPoi(BDLocation myPoi) {
        this.myPoi = myPoi;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        info = new Info();
        /*SharedPreferences share = getSharedPreferences(SHAREPREFERENCES_FILE_NAME, Context.MODE_PRIVATE);
        access_token = share.getString("access_token", "null");*/
    }
         public String basehost="http://192.168.1.103:8080/yejhxt/api";

    public static String getSharepreferencesFileName() {
        return SHAREPREFERENCES_FILE_NAME;
    }

    public String getBasehost() {
        return basehost;
    }

    public void setBasehost(String basehost) {
        this.basehost = basehost;
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public Info getInfo() {
        return info;
    }

    public void setInfo(Info info) {
        this.info = info;
    }
}
